package darkwindclient.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import darkwindclient.connection.Connection;

public class Spoob {
	public Spoob() {
		JFrame f = new JFrame("Darkwind-client");
		f.setSize(700, 800);
		f.setLayout(new BorderLayout());
		
		TextField text = new TextField();
		TextField log = new TextField();
		Connection conn = new Connection(text, log);		
		InputField input = new InputField(conn, text, log);
		MainFrame main = new MainFrame(text, log);
		
		f.add(main, BorderLayout.CENTER);
		f.add(input, BorderLayout.PAGE_END);
		
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setVisible(true);
		
	}
}
